Repository navigation
Release 4.1.0: instance debug/verbose overrides and public systemMsg helper - #128
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds instance-level
debug/verboseoverrides and a publicsystemMsg()helper.
trueforces a flag on for the whole run;falsesuppresses a hostthat enables it; unset keeps the host value. Reading the instance property
reports the effective value.
systemMsg(type, message, object)replaces theinternal
_systemMsgand applies the standard host prefix and credentialredaction.
Also includes the test and documentation work staged for this release:
deterministic unit coverage for transport and state guards, host traversal,
shutdown flows, and behaviour hardening, plus two live tests for the default
command timeout and the TTY progress indicator.
Why
Handlers and callers previously had no stable public way to emit gated debug
or verbose output, and logging had to be configured per host. This makes both
behaviours instance-level and safe to call from user handlers.
How it was tested
npm test— 222 pass / 0 fail (current); 174 pass / 48 skipped (baseline)npm run test:live:all— 30 passed, 0 failednpm run check:changelog—changelog OK for 4.1.0npm run check:build—lib/in sync withsrc/git diff --check— cleanCoverage (informational — local, Node v26.13.0)
Combined = 2874 of 2929 executable lines hit by at least one suite.
Miss overlap: 87 unit miss / 577 live miss / 55 missed by both /
32 live covers unit miss / 522 unit covers live miss.
missed by bothis downfrom 206 at the initial review. Raw LCOV files are not attached due to size;
full commands and method are in
test/coverage.md. Coverage is diagnostic,not a release gate.
Checklist
npm testpasses (build check, unit, and baseline)npm run test:live:all)README.mdanddocs/updated for user-visible changesCHANGELOG.mdhas an entry under 4.1.0